package org.darkforest.model;

import org.darkforest.common.util.Page;

public class OrderGiftCode extends Page<OrderGiftCode>{
    private Integer id;

    private String giftCode;

    private String generateOrderId;

    private String useOrderId;

    private Integer codeState;

    private String useTime;

    private String createTime;

    private Integer createrId;

    private String createName;

    private String codeStateInfo;

    private Integer useMemberId; // 领取者id

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getGiftCode() {
        return giftCode;
    }

    public void setGiftCode(String giftCode) {
        this.giftCode = giftCode == null ? null : giftCode.trim();
    }

    public String getGenerateOrderId() {
        return generateOrderId;
    }

    public void setGenerateOrderId(String generateOrderId) {
        this.generateOrderId = generateOrderId == null ? null : generateOrderId.trim();
    }

    public String getUseOrderId() {
        return useOrderId;
    }

    public void setUseOrderId(String useOrderId) {
        this.useOrderId = useOrderId == null ? null : useOrderId.trim();
    }

    public Integer getCodeState() {
        return codeState;
    }

    public void setCodeState(Integer codeState) {
        this.codeState = codeState;
    }

    public String getUseTime() {
        return useTime;
    }

    public void setUseTime(String useTime) {
        this.useTime = useTime == null ? null : useTime.trim();
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime == null ? null : createTime.trim();
    }

    public Integer getCreaterId() {
        return createrId;
    }

    public void setCreaterId(Integer createrId) {
        this.createrId = createrId;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName == null ? null : createName.trim();
    }

    public String getCodeStateInfo() {
        String info="";
        if(this.codeState == 1){
            info="未使用";
        }else if(this.codeState == 2){
            info="已使用";
        }else if(this.codeState == 3){
            info="已注销";
        }
        return info;
    }

    public void setCodeStateInfo(String codeStateInfo) {
        this.codeStateInfo = codeStateInfo;
    }

    public Integer getUseMemberId() {
        return useMemberId;
    }

    public void setUseMemberId(Integer useMemberId) {
        this.useMemberId = useMemberId;
    }
}